<template>
  <!-- 历史付款记录详情-->
  <el-dialog
    :title="title"
    center
    :visible.sync="openState"
    width="1024px"
    :close-on-click-modal="false"
    :before-close="handleClose"
  >
    <el-form ref="detailForm" :model="detailForm" disabled label-width="110px">
      <el-card class="form-card payeeInfo-card">
        <div slot="header" class="label-header-msg">
          <span></span>
        </div>
        <el-row :gutter="10">
          <el-col :span="12">
            <div class="grid-payee">
              <el-form-item label="客户账号" prop="actNo">
                <acct-no-input
                  v-model="detailForm.actNo"
                  placeholder="客户账号"
                  :disabled="true"
                />
              </el-form-item>
            </div>
          </el-col>
        </el-row>
        <el-form-item label="客户名称" prop="name">
          <el-input v-model="detailForm.name" placeholder="客户名称"/>
        </el-form-item>
        <el-form-item label="客户地址" prop="addr">
          <el-input v-model="detailForm.addr" placeholder="客户地址"/>
        </el-form-item>
        <el-row :gutter="10">
          <el-col :span="12">
            <div class="grid-payee">
              <el-form-item label="收款行行号" prop="rcvBrno">
                <BrnoInput
                  v-model="detailForm.rcvBrno"
                  placeholder="收款行行号"
                />
              </el-form-item>
            </div>
          </el-col>
          <el-col :span="12">
            <el-form-item label="收款行行名" prop="rcvBrname" label-width="130px">
              <el-input v-model="detailForm.rcvBrname" placeholder="收款行行名" disabled/>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="10">
          <el-col :span="12">
            <div class="grid-payee">
              <el-form-item label="收款人开户行号" prop="accBrno">
                <BrnoInput
                  v-model="detailForm.accBrno"
                  placeholder="收款人开户行行号"
                />
              </el-form-item>
            </div>
          </el-col>
          <el-col :span="12">
            <el-form-item label="收款人开户行行名" prop="accBrnoName" label-width="130px">
              <el-input v-model="detailForm.accBrnoName" placeholder="收款人开户行行名" disabled/>
            </el-form-item>
          </el-col>
        </el-row>
      </el-card>
    </el-form>
    <div slot="footer" class="dialog-footer">
      <el-button type="primary" @click="cancel">关 闭</el-button>
    </div>
  </el-dialog>
</template>
<script>
import BrnoSearchDialog from "@/views/components/BrnoSearchDialog";
import { listPageMixin } from "@/libs/listPageMixin";
import BankCodeSearchDialog from "@/views/components/BankCodeSearchDialog";
import BrnoInput from "@/views/components/BrnoInput";
import AcctNoInput from "@/views/components/AcctNoInput";
import { getBankInfByBankCode } from "@/api/cnaps/common/bankInfo";
import BankBranchDialog from "@/views/components/BankBranchDialog";
import { payinfoUpdate } from "@/api/cnaps/bizMng/payinfo";
export default {
  name: "payinfoDetail",
  mixins: [listPageMixin],
  components: {
    BankBranchDialog,
    AcctNoInput,
    BrnoInput,
    BankCodeSearchDialog,
    BrnoSearchDialog,
  },
  props: {

  },
  data() {
    return {
      title: "",
      // 是否显示弹出层
      openState: false,
      // 字段可编辑控制

      //数据字典
      searchFormDictList: [

      ],
      // 表单参数
      detailForm: {
      },
      opButtonList: () => {
        return [
        ];
      },
    };
  },
  mounted() {
  },
  methods: {
    // 表单重置
    reset() {
      this.resetForm("detailForm");
      this.$set(this, "detailForm", {});
    },
    // 关闭回掉
    handleClose(done) {
      this.$confirm("确认关闭？")
        .then(_ => {
          this.reset();
          done();
        })
        .catch(_ => {});
    },
    show(row) {
      this.detailForm = row;
      this.title = "历史付款记录维护明细";
      this.openState = true;
    },

    cancel() {
      this.openState = false;
      this.reset();
    },

  },
};
</script>
<style>
.label-header-msg {
  font-weight: bold;
}

.form-card {
  margin-bottom: 10px;
}
</style>
